package studychinese.activity;

import android.content.Intent;
import android.view.KeyEvent;
import android.view.View;
import android.widget.TextView;

import com.hschinese.pronunciation.R;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class SetLangue extends BaseAcitivity {


    @Bind(R.id.tv_setlangue_han)
    TextView tvSetlangueHan;
    @Bind(R.id.tv_setlangue_english)
    TextView tvSetlangueEnglish;
    @Bind(R.id.tv_setlangue_korea)
    TextView tvSetlangueKorea;
    @Bind(R.id.tv_setlangue_chines)
    TextView tvSetlangueChines;
    @Bind(R.id.tv_setlangue_usa)
    TextView tvSetlangueUsa;
    @Bind(R.id.tv_setlangue_kor)
    TextView tvSetlangueKor;

    @Override
    protected int setContainer() {
        return R.layout.activity_set_langue;
    }

    @Override
    public void innitView() {
        ButterKnife.bind(this);

    }



    @OnClick({R.id.tv_setlangue_chines, R.id.tv_setlangue_usa, R.id.tv_setlangue_kor})
    public void onViewClicked(View view) {

        switch (view.getId()) {
            case R.id.tv_setlangue_chines:
                startActivity(new Intent(this,LoginActivity.class).putExtra("input","zhengchang"));
                this.finish();
                break;
            case R.id.tv_setlangue_usa:

                break;
            case R.id.tv_setlangue_kor:

                break;
        }
    }
    @Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
        if (keyCode == KeyEvent.KEYCODE_BACK) {
            //写下你希望按下返回键达到的效果代码，不写则不会有反应
            return false;
        }
        return super.onKeyDown(keyCode, event);
    }
}
